package com.qst0915.controller;

import com.qst0915.entity.User;
import com.qst0915.service.impl.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {
    @Autowired
    UserServiceImpl userService;
    public void sayHi(User user){
        System.out.println("Controller中的方法");
        userService.sayHi();
    }
}
